import { request } from "./request";

export const requestBlob = async (url: string): Promise<Blob> => {
  return new Promise((resolve, reject) => {
    request(url).then((response) => {
      if (response.status == 200) {
        resolve(response.blob());
      } else {
        reject("Not Found");
      }
    });
  });
};
